package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_drink_energy", desc = "饮子摊-体力变化记录表", autoSave = true, uploadCk = true)
public class LogDrinkEnergy extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "类型，1消耗，2自然恢复，3道具恢复")
    private int type;
    @FieldTypeAnnotation(desc = "变化数量")
    private int changeCount;
    @FieldTypeAnnotation(desc = "变化后最新数量")
    private int newCount;

    public LogDrinkEnergy(long userId, int activityId, int type, int changeCount, int newCount) {
        this.userId = userId;
        this.activityId = activityId;
        this.type = type;
        this.changeCount = changeCount;
        this.newCount = newCount;
    }

    public long getUserId() {
        return userId;
    }

}
